rgba

open fun rgba(red: Float, green: Float, blue: Float, alpha: Float): Color

Creates a new Color instance from the passed RGBA values.

Return

a new Color instance

Parameters

red

the red channel value in the 0..1 range

green

the green channel value in the 0..1 range

blue

the blue channel value in the 0..1 range

alpha

the opacity channel value in the 0..1 range

Throws

if any of the passed values is out of the 0..1 range